package com.community.service;

import com.community.dto.MerchantDto;
import com.community.dto.MerchantOrders;
import com.community.pojo.Merchant;
import com.baomidou.mybatisplus.extension.service.IService;
import com.community.utils.PageUtils;
import com.community.vo.MerchantVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author TangHaoSong Fly ChenJie HeYuHang
 * @since 2024-05-15
 */
public interface IMerchantService extends IService<Merchant> {
    /**
     * 修改
     * @param dto
     * @return
     */
    boolean updateByDtoId(MerchantDto dto);
    /**
     *删除
     * @param merchant
     */
    void delByMerchantId(Merchant merchant);

    /**
     *查询所有信息
     * @param pageNo
     * @param pageSize
     * @param merchant
     * @return
     */
    PageInfo<Merchant> getMerchantList(int pageNo, int pageSize, Merchant merchant);
    /**
     * 审核查询
     * @param merchant
     * @param pageNo
     * @param pageSize
     * @return
     */
    PageUtils<Merchant> merchantFuHePage(Merchant merchant, int pageNo, int pageSize);

    List<MerchantOrders> merchantByConsumerId(Integer id);
}
